package com.leo.event;

import java.io.Serializable;
import java.util.Map;

/**
 * @ClassName: EventObject
 * @Description: 事件处理的对象类
 * @Author: leo825
 * @Date: 2020-02-16 23:45
 * @Version: 1.0
 */
public class EventObject implements Serializable{

    /**
     * 对象的id
     */
    private String id;
    /**
     * 对象的名称
     */
    private String name;
    /**
     * 对象携带信息
     */
    private Map<String, Object> info;

    public EventObject(String id, String name, Map<String, Object> info) {
        this.id = id;
        this.name = name;
        this.info = info;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map<String, Object> getInfo() {
        return info;
    }

    public void setInfo(Map<String, Object> info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "EventObject{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", info=" + info +
                '}';
    }
}
